package
{
	import flash.display.Sprite;
	import flash.geom.Rectangle;

	public class Rectangledemo extends Sprite
	{
		public function Rectangledemo()
		{
			var firstRect:Rectangle = new Rectangle();
			trace(firstRect);  // (x=0, y=0, w=0, h=0)
			var secondRect:Rectangle = new Rectangle(1, 3, 11, 13);
			trace(secondRect); // (x=1, y=3, w=11, h=13)
			var thirdRect:Rectangle = new Rectangle(5, 8, 17, 19);
			trace(thirdRect);  // (x=5, y=8, w=17, h=19)
			var isContained:Boolean = secondRect.containsRect(thirdRect);
			trace(isContained); // false
		}
	}
}